Add Region SKU Capacity Unavailable Error and consent message improvements#6771
Conversation
… common error tool
There was a problem hiding this comment.
Pull request overview
This PR enhances error handling and documentation in the Azure Developer CLI by adding capacity unavailability error guidance and improving consent message UX.
Changes:
- Added comprehensive documentation for "Region SKU Capacity Unavailable Error" with actionable LLM instructions and Azure CLI commands
- Added
consentMessageparameter tocheckErrorHandlingConsentfunction to display user-friendly descriptions of consent actions - Updated consent flow to show informative warning messages when auto-consent is already enabled
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| cli/azd/internal/mcp/tools/prompts/azd_provision_common_error.md | Added new error section documenting regional SKU capacity shortage errors with solutions for changing regions or SKUs |
| cli/azd/cmd/middleware/error.go | Enhanced consent checking to display user-friendly messages about which action is being auto-approved and how to disable it |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
Azure Pipelines successfully started running 1 pipeline(s). |
Azure Dev CLI Install InstructionsInstall scriptsMacOS/Linux
bash: pwsh: WindowsPowerShell install MSI install Standalone Binary
MSI
Documentationlearn.microsoft.com documentationtitle: Azure Developer CLI reference
|
Changes
1. Add Region SKU Capacity Unavailable Error to common provisioning errors
Added a new error section in azd_provision_common_error.md for the error:
This covers regional capacity shortages for services like Azure AI Search, App Service, and Cognitive Services, with instructions to change region or SKU.
2. Add consent message parameter to error handling middleware